<template>
  <div class="my_page">
    <div class="iconfont icon-xinfeng"></div>
    <div class="personal">
      <div class="img">
        <img
          src="https://easyreadfs.nosdn.127.net/apLh4gR-df9mC5GbtPJoOw==/8796093024557136249"
          alt=""
        />
      </div>
      <div class="detail">
        <div class="name">为难我胖虎</div>
        <div class="level">lv.1</div>
        <div class="iconfont icon-xiangyoujiantou"></div>
      </div>
      <!-- <div class="iconfont icon-xiangyoujiantou"></div> -->
    </div>

    <div class="center">
        <div class="pay">
            <div class="balance">余额</div>
            <div >充值送礼包</div>
            <div class="topUp">充值</div>
        </div>
        <!-- 签到 -->
        <div class="signIn">
             <div class="one">签到</div>
            <div class="two">做任务领红包</div>
            <div class="three">签到</div>
        </div>
    </div>

    <div class="bottom">
        <div class="note">
            <div class="iconfont icon-thin-_notebook_p"></div>
            <div class="text">笔记</div>
            <div>
               <span class="iconfont icon-xiangyoujiantou"></span>
            </div>
        </div>
        <div class="note">
            <div class="iconfont icon-shangchuan"></div>
            <div class="text">已购和上传</div>
            <div>
               <span class="iconfont icon-xiangyoujiantou"></span>
            </div>
        </div>
        <div class="note">
            <div class="iconfont icon-kefu"></div>
            <div class="text">在线客服</div>
            <div>
               <span class="iconfont icon-xiangyoujiantou"></span>
            </div>
        </div>
        <div class="note">
            <div class="iconfont icon-yueliang"></div>
            <div class="text">夜间模式</div>
            <div>
               <van-switch v-model="checked" size="24px" />
            </div>
        </div>
        <div class="note">
            <div class="iconfont icon-yly_jifenshangcheng"></div>
            <div class="text">积分商城</div>
            <div>
               <span class="iconfont icon-xiangyoujiantou"></span>
            </div>
        </div>

        <div class="note">
            <div class="iconfont icon-shezhi"></div>
            <div class="text">设置</div>
            <div>
               <span class="iconfont icon-xiangyoujiantou"></span>
            </div>
        </div>
    </div>

     <!-- 底部导航 -->
         <footer-nav></footer-nav>
  </div>
</template>

<script>
import footerNav from "../components/base/footerNav.vue"
export default {
   data() {
    return {
      checked: true,
    };
  },
   components:{
       footerNav,
    }
};
</script>

<style lang="less">
.my_page {
  padding: 0 20px;
  padding-top: 40px;
  position: relative;
  background-color: #f6f6f6;
  // height: 100vh;
  .icon-xinfeng {
    position: absolute;
    top: 20px;
    right: 32px;
    font-size: 22px;
  }
  .personal {
    display: flex;
    margin-bottom: 10px;
    .img {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      margin-right: 18px;
      img {
        width: 72px;
        height: 72px;
        border-radius: 50%;
      }
    }
    .detail{
        flex: 1;
        position: relative;
        .name{
            margin: 10px 0;
        }
        .level{
            font-size: 14px;
            width: 32px;
            border-radius: 30%;
            background-color: #efefef;
            text-align: center;
        }
        .icon-xiangyoujiantou{
            position: absolute;
            right: 0;
            top: 42%;
        }
    }
  }
  .center{
      height: 110px;
      display: flex;
      .pay{
          width: 50%;
          text-align: center;
          div{
            margin-bottom: 10px;
            font-size: 14px;
          }
          .balance{
            font-size: 20px;
            line-height: 20px;
          }
          
          
          .topUp{
            width: 65px;
            border: 1px solid #efefef;
            background-color: #e75052;
            text-align: center;
            margin: 0 auto;
            padding: 4px 0;
            border-radius: 10px;
            font-size: 15px;
            color: #efefef;
            line-height: 15px;
          }
      }
      .signIn{
          flex: 1;
          text-align: center;
          div{
            margin-bottom: 10px;
            font-size: 14px;

          }
          .one{
            font-size: 20px;
            line-height: 20px;
          }
          .three{
            width: 65px;
            border: 1px solid #efefef;
            background-color: #efefef;
            text-align: center;
            margin: 0 auto;
            padding: 4px 0;
            border-radius: 10px;
            font-size: 15px;
            
            line-height: 15px;
          }

      }
  }
  .bottom{
    padding-bottom: 20px;
    .note{
      display: flex;
      margin-bottom: 40px;
      .icon-thin-_notebook_p,.icon-shangchuan,.icon-kefu,.icon-yueliang,.icon-yly_jifenshangcheng,.icon-shezhi{
        font-size: 20px;
        margin-right: 16px;
      }
      .text{
        flex: 1;
      }
    }
  }
}
</style>